package com.note.chh.notebook.Adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.note.chh.notebook.Model.Stroke;
import com.note.chh.notebook.R;

/**
 * Created by caihuahui on 2018/3/19.
 */

public class StrokeAdapter extends BaseQuickAdapter<Stroke,BaseViewHolder> {
    public StrokeAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, Stroke item) {
        helper.setText(R.id.mText_title,item.getTitle());
        helper.setText(R.id.mText_time,item.getStartFormartTime()+" 前"+item.getRemind().replace("前","")+"提醒");
    }
}
